package cn.webestar.scms.user.entity;

import cn.webestar.scms.commons.entity.BasicDO;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@TableName(value = "t_sys_dict", autoResultMap = true)
@Schema(name = "SysDict", description = "字典")
public class SysDict extends BasicDO<Long> {

    @TableField("pcode")
    @Schema(description = "父键")
    private String pcode;

    @TableField("code")
    @Schema(description = "键")
    private String code;

    @TableField("val")
    @Schema(description = "值")
    private String val;

    @TableField("name")
    @Schema(description = "名称")
    private String name;

    @TableField("sort")
    @Schema(description = "排序")
    private Integer sort;

}